﻿@model Blog.Models.UserModel

@{
    Layout = "_LoginLayout.cshtml";
}
<div class="container">
    @using (Html.BeginForm("Login", "Admin",
            new { ReturnUrl = ViewBag.ReturnUrl },
            FormMethod.Post, new { @class = "form-signin" }))
    {
        @Html.AntiForgeryToken()
        Html.ValidationSummary(true, "Inloggning misslyckades! Kolla dina inloggningsuppgifter.");

        <fieldset>
            <h2 class="form-signin-heading">Logga in</h2>
            <div>@Html.LabelFor(u => u.UserName)</div>
            <div>
                @Html.TextBoxFor(u => u.UserName, new { @class = "form-control" })
                @Html.ValidationMessageFor(u => u.UserName)
            </div>
            <div>@Html.LabelFor(u => u.Password)</div>
            <div>
                @Html.PasswordFor(u => u.Password, new { @class = "form-control" })
                @Html.ValidationMessageFor(u => u.Password)
            </div>
            <input class="btn btn-lg btn-primary btn-block" type="submit" value="Logga In" />
        </fieldset>


    }

</div>